if(USE_NNAPI AND ANDROID)
  set(Caffe2_CONTRIB_NNAPI_CPU_SRC
    "${CMAKE_CURRENT_SOURCE_DIR}/dlnnapi.c"
    "${CMAKE_CURRENT_SOURCE_DIR}/nnapi.cc"
  )
  set(Caffe2_CONTRIB_NNAPI_TEST_CPU_SRC
    "${CMAKE_CURRENT_SOURCE_DIR}/nnapi_benchmark.cc"
    "${CMAKE_CURRENT_SOURCE_DIR}/nnapi_test.cc"
  )

  set(Caffe2_CPU_SRCS ${Caffe2_CPU_SRCS}
    ${Caffe2_CONTRIB_NNAPI_CPU_SRC} PARENT_SCOPE)
  set(Caffe2_CPU_TEST_SRCS ${Caffe2_CPU_TEST_SRCS}
    ${Caffe2_CONTRIB_NNAPI_TEST_CPU_SRC} PARENT_SCOPE)
endif()
